<?php echo $this->fetch('header.html'); ?>
<div> 
<?php echo $this->fetch('tejia/nav.html'); ?>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   
   <td>名称</td>
    
 
   <td align="center">店铺</td>
   <td align="center">开始时间</td>
   
   <td align="center">价格</td>
   <td align="center">市场价</td>
   <td align="center">时间</td>
   <td align="center">图片</td>
   <td align="center">类型</td>
   <td align="center">总数</td>
   <td align="center">购买数</td>
   <td align="center">限制购买数</td>
   <td align="center">状态</td>
   
<td align="center">操作</td>
  </tr>
 <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
   <td><?php echo $this->_var['c']['id']; ?></td>
    
   <td><?php echo $this->_var['c']['title']; ?></td>
    
  
   <td align="center"><?php echo $this->_var['c']['shop_name']; ?></td>
   <td align="center"><?php echo date("Y-m-d",$this->_var['c']['starttime']); ?></td>
    
   <td align="center"><?php echo $this->_var['c']['price']; ?></td>
   <td align="center"><?php echo $this->_var['c']['market_price']; ?></td>
   <td align="center"><?php echo date("Y-m-d",$this->_var['c']['dateline']); ?></td>
   <td align="center"><img src="<?php echo images_site($this->_var['c']['imgurl']); ?>.100x100.jpg" width="60" onerror="err_imgurl(this)"></td> 
   <td align="center"><?php echo $this->_var['c']['type_name']; ?></td> 
   <td align="center"><?php echo $this->_var['c']['total_num']; ?></td>
   <td align="center"><?php echo $this->_var['c']['buy_num']; ?></td>
   <td align="center"><?php echo $this->_var['c']['limit_num']; ?></td>
   <td align="center"> <?php if ($this->_var['c']['status'] == 2): ?>
   <img src='<?php echo $this->_var['skins']; ?>images/yes.gif' class="ajax_no" url='<?php echo $this->_var['appadmin']; ?>?m=tejia&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=98' rurl='<?php echo $this->_var['appadmin']; ?>?m=tejia&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=2'>
    <?php else: ?>
    <img src='<?php echo $this->_var['skins']; ?>images/no.gif' class="ajax_yes" url='<?php echo $this->_var['appadmin']; ?>?m=tejia&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=2' rurl='<?php echo $this->_var['appadmin']; ?>?m=tejia&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=98'>
    <?php endif; ?></td>
 
<td><a href="admin.php?m=tejia&a=add&id=<?php echo $this->_var['c']['id']; ?>">编辑</a> 
<a href="/index.php?m=tejia&a=show&id=<?php echo $this->_var['c']['id']; ?>" target="_blank">查看</a> 
<a href="javascript:;" class="delete" url="admin.php?m=tejia&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
  </tr>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </table>
<div><?php echo $this->_var['pagelist']; ?></div>
</div> 
<?php echo $this->fetch('footer.html'); ?>